export default function () {
  const rules = {
    'email': [
      {
        type: 'email',
        required: true,
        message: '请填写邮箱',
        trigger: ['blur']
      },
    ],
    'password': {
      type: 'string',
      max: 18,
      min: 6,
      required: true,
      message: '密码长度位[6, 18]',
      trigger: ['blur']
    },
    'code': {
      type: 'number',
      min: 6,
      required: true,
      message: '请填写6位验证码',
      trigger: ['blur']
    },
  }

  return {
    rules
  }
}